package com.feiyu.common.util;

import com.feiyu.bean.HouseUnit;
import com.feiyu.bean.HouseUnitChange;
import org.springframework.beans.BeanUtils;

/**
 * @author nanshouxiao@teacher.com.cn
 * @date 2018-05-23 10:20
 */
public class BeanConvertUtil {
    public static HouseUnitChange unitToChange(HouseUnit houseUnit) {
        HouseUnitChange houseUnitChange = new HouseUnitChange();
        BeanUtils.copyProperties(houseUnit, houseUnitChange);
        return houseUnitChange;
    }
}
